package com.xposed.openfire.smack.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class ChatMessage {
    @Id(autoincrement = true)
    private Long id;
    @Property(nameInDb = "chat_record_id")
    private Long ChatRecordId;
    @Property(nameInDb = "name")
    private String name;
    @Property(nameInDb = "from")
    private String from;
    @Property(nameInDb = "to")
    private String to;
    @Property(nameInDb = "msg")
    private String msg;
    @Property(nameInDb = "msg_type")
    private String msgType;
    @Property(nameInDb = "time")
    private String time;
    @Generated(hash = 953823200)
    public ChatMessage(Long id, Long ChatRecordId, String name, String from,
            String to, String msg, String msgType, String time) {
        this.id = id;
        this.ChatRecordId = ChatRecordId;
        this.name = name;
        this.from = from;
        this.to = to;
        this.msg = msg;
        this.msgType = msgType;
        this.time = time;
    }
    @Generated(hash = 2271208)
    public ChatMessage() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Long getChatRecordId() {
        return this.ChatRecordId;
    }
    public void setChatRecordId(Long ChatRecordId) {
        this.ChatRecordId = ChatRecordId;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getFrom() {
        return this.from;
    }
    public void setFrom(String from) {
        this.from = from;
    }
    public String getTo() {
        return this.to;
    }
    public void setTo(String to) {
        this.to = to;
    }
    public String getMsg() {
        return this.msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
    public String getMsgType() {
        return this.msgType;
    }
    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }
    public String getTime() {
        return this.time;
    }
    public void setTime(String time) {
        this.time = time;
    }
}
